import axios from '@/utils/request'

// 导入vuex内的数据
/**
 *
 * @param {Number} mobile 手机号
 * @param {Number} code 验证码
 * @returns
 */
export const userLogin = (mobile, code) => axios({
  method: 'post',
  url: '/v1_0/authorizations',
  data: {
    mobile,
    code
  }
})

export function getUserInfo() {
  return axios({
    url: '/v1_0/user/profile'
  })
}
